package com.labichaoka.chaoka.wxapi;

import android.os.Bundle;

import com.labichaoka.chaoka.utils.ToastUtils;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import com.umeng.socialize.weixin.view.WXCallbackActivity;

public class WXEntryActivity extends WXCallbackActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public void onResp(BaseResp resp) {
        super.onResp(resp);

        switch (resp.errCode) {
            case 0:
                ToastUtils.show("分享成功");
                break;
            case -2:
                ToastUtils.show("分享取消");
                break;
            case -1:
                ToastUtils.show("分享失败");
                break;
            default:
                ToastUtils.show("分享出错");
                break;
        }
    }
}
